<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://xmlns.jcp.org/jsf/core"
	xmlns:h="http://xmlns.jcp.org/jsf/html"
	xmlns:p="http://primefaces.org/ui">

 <h:head>
        <title>Ventes Privées</title>
</h:head>
<h:body>
	<h:graphicImage library="images" name="logo.gif" style="width:180px;height:25px"/>
	<h:form>
		<h:dataTable  style="margin-left: auto; margin-right: auto;" value="#{listeVentesPriveesCtrl.getAllVentesPrivees()}" var="ventePrivee">
			<f:facet name="header"><h:link   outcome="login" value="Se connecter"/></f:facet>
				<h:column>
					<fieldset>
						<legend><h:outputText value="Vente #{ventePrivee.marque.nom}"/></legend>
						<h:panelGrid style="font-size: 18;" columns="3" cellpadding="10">
							<h:graphicImage library="images" name="#{listeVentesPriveesCtrl.getImage(ventePrivee)}" style="width:300px;height:75px"/>
							<h:panelGroup>							
							<h:outputText value="du "/>
							<h:outputText value="#{ventePrivee.dateDebut}"><f:convertDateTime type="date" pattern="dd.MMMM.yy" /></h:outputText>
							<br/><h:outputText value=" au "/>
							<h:outputText value="#{ventePrivee.dateFin}"><f:convertDateTime type="date" pattern="dd.MMMM.yy" /></h:outputText>
						</h:panelGroup>
						</h:panelGrid>
					</fieldset>
				</h:column>
		</h:dataTable>
		</h:form>
</h:body>
</html>